-- shield
-- created by zhuangsl
-- 护盾

return {
    fetchProps = function(who, status, condition)
        local shield = condition["shield"] or 0;
        local shieldType = condition["shield_type"] or "shiled";
        local endRound = condition["end_round"];

        return { { PropM.getPropId("acc_prop"), shieldType, shield, endRound, } };
    end,

    desc = function(who, status, condition)
        -- 获取状态描述
        local cfg = CombatStatusM.getStatusInfo(status);
        local desc = cfg.desc;

        return string.gsub(desc, "{shield}", condition["shield"]);
    end,
};
